import axios from "axios"

export default class MaterialInstorageModel{
  static instorageModel=null;

  static getInstance(){
    if(this.instorageModel==null){
      this.instorageModel=new MaterialInstorageModel();
    }
    return this.instorageModel;
  }

  saveMaterialInstorage(instorage,details){
    return axios.post("http://localhost/MaterialInstorage",{"instorage":instorage,"details":details});
  }

  getMaterialInstorage(args){
    return axios.get("http://localhost/MaterialInstorage",{params:args})
  }
}